#include "Blocks/SeaUrchinBlock.h"

namespace PocketSurvival
{
    int32_t SeaUrchinBlock::getIndex()
    {
        return Index();
    }

    const std::string &SeaUrchinBlock::getBlockName()
    {
        static std::string blockName = "SeaUrchinBlock";
        return blockName;
    }

    const std::vector<BoundingBox> &SeaUrchinBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t data = Terrain::ExtractData(value);
        int32_t face = BottomSuckerBlock::GetFace(data);
        int32_t subvariant = BottomSuckerBlock::GetSubvariant(data);
        return BlockConstans::seaUrchinCollisionBoxes[4 * face + subvariant];
    }
}